﻿using System.ComponentModel.DataAnnotations;
using System.Web;
using System.Web.Mvc;

namespace SDCloudSolution.SDCloud.Web.Models.Model
{
    public class ModelEditViewModel
    {
        [Required]
        [HiddenInput(DisplayValue = false)]
        public int ModelId { get; set; }

        [Required]
        [AllowHtml]
        [MinLength(3)]
        [MaxLength(30)]
        public string Name { get; set; }

        [Required]
        [AllowHtml]
        [DataType(DataType.MultilineText)]
        public string Description { get; set; }

        public string CurrentFileName { get; set; }

        public HttpPostedFileBase ModelFile { get; set; }
    }
}